﻿using System;
using System.Threading.Tasks;

namespace DimensionsHelper.Common.Contracts.Services;

/// <summary>
/// 用于提示文本消息
/// </summary>
public interface IMessageService
{
    /// <summary>
    /// 显示消息
    /// </summary>
    /// <param name="message">消息文本</param>
    /// <param name="title">消息框标题</param>
    /// <returns></returns>
    Task ShowAsync(string message, string? title);


    /// <summary>
    /// 显示消息
    /// </summary>
    /// <param name="message">消息文本</param>
    /// <param name="title">消息框标题</param>
    /// <param name="button">按钮文本</param>
    /// <param name="clickAction">按下按钮触发的回调函数</param>
    /// <returns></returns>
    Task ShowAsync(string message, string? title, string button, Action clickAction);
}